package com.javaweb.db.help;

import com.javaweb.enums.SqlConditionEnum;

import lombok.Getter;
import lombok.Setter;

/**
 * SqlCondition
 * @see com.javaweb.db.query.QueryWapper
 * @author tank2140896
 */
@Getter
@Setter
public class SqlCondition {
	
	/**
	 * SQL条件枚举
	 */
	private SqlConditionEnum sqlConditionEnum;
	
	/**
	 * 字段名称
	 */
	private String columnName;
	
	/**
	 * 字段值
	 */
	private Object columnValue;
	
	/**
	 * 无参构造方法
	 */
	public SqlCondition(){
		//do nothing
	}
	
	/**
	 * 带参构造方法
	 * @param sqlConditionEnum SQL条件枚举
	 * @param columnName 字段名称
	 * @param columnValue 字段值
	 */
	public SqlCondition(SqlConditionEnum sqlConditionEnum,String columnName,Object columnValue){
		this.sqlConditionEnum = sqlConditionEnum;
		this.columnName = columnName;
		this.columnValue = columnValue;
	}

}
